import 'package:flutter/material.dart';
import 'package:osc/ui/pages/message/message_letter_list.dart';
import 'package:osc/ui/pages/message/message_list.dart';
import 'package:osc/ui/widgets/common_scaffold.dart';
import 'package:osc/ui/widgets/common_tab_bar.dart';

class MessagePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return CommonScaffold(
        title: "消息中心",
        body: CommonTabBar(
            tabs: [
              Tab(text: "@我",),
              Tab(text: "评论",),
              Tab(text: "私信",),
            ],
            pages: [
              MessageList(isAtMe: true,),
              MessageList(isAtMe: false,),
              MessageLetterList(),
            ],
        ),
    );
  }
}
